<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //嵌入式 js代码
        window.onload = function () {
            var button = document.querySelector('button');
            button.addEventListener('click', function () {
                alert('bbbbbbbbbbbbbbbbbbbbbbbbbbbb')
            });
        };
    </script>
</head>

<body>
    <h1>Embedded Scripting Example</h1>
    <button>Click me</button>
</body>

</html>